package practica12;

//import org.antlr.runtime.TokenStream;
//import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.tree.*;
import org.antlr.runtime.Token;

public class MyTreeAdaptor extends CommonTreeAdaptor{
	
	
    public Object create(Token token) {
        return new MyTree(token);
    }

    public Object dupNode(Object t) {
        if (t == null)
        	return null;
       
        return create(((MyTree) t).token);
    }

//public Object errorNode(TokenStream input, Token start, Token stop,
//                RecognitionException e) {
//        MyTreeErrorNode t = new MyTreeErrorNode(input, start, stop, e);
//       
//        return t;
//}

}

